package com.lovebridge.ui;

import org.zkoss.zk.ui.Path;
import org.zkoss.zk.ui.Sessions;
import org.zkoss.zul.Window;

/**
 * EditFormWindow.
 */
public class EditFormWindow extends Window
{
    public void onSave()
    {
        BaseListWindow baseListWindow = (BaseListWindow) Sessions.getCurrent().getAttribute(Constants.PARENT_LIST_WINDOW);
        baseListWindow.onSave();
        this.detach();
    }

    public void onCancel()
    {
        this.detach();
    }
}